home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 2
/
Geek_Gadgets_2_2352.bin
/
lists
/
ade-gcc.archive.9602.gz
/
ade-gcc.archive.9602
/
000053_owner-ade-gcc_Wed Feb 14 06:04:54 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-02-28
|
2KB
Return-Path: <owner-ade-gcc>
Received: by fishpond (Smail3.1.29.1 #57)
id m0tmf11-000gYJa; Wed, 14 Feb 96 06:04 EST
Sender: owner-ade-gcc
Received: from mail.gmd.de by fishpond with smtp
(Smail3.1.29.1 #57) id m0tmf0z-000gXUC; Wed, 14 Feb 96 06:04 EST
Received: from diva.gmd.de (diva) by mail.gmd.de with SMTP id AA04248
(5.67b8/IDA-1.5 for <ade-gcc@amigalib.com>); Wed, 14 Feb 1996 12:02:37 +0100
Received: by diva.gmd.de with UUCP id AA29188
(5.67b8/IDA-1.5); Wed, 14 Feb 1996 12:02:35 +0100
Date: Wed, 14 Feb 1996 12:02:35 +0100
Message-Id: <199602141102.AA29188@diva.gmd.de>
From: Joerg.Hoehle@gmd.de (Joerg Hoehle)
To: ADE GCC List <ade-gcc@amigalib.com>,
Amiga GCC List <amiga-gcc-port@nic.funet.fi>
Subject: Re: Amiga-specific attributes implemented as keywords
In-Reply-To: <Pine.SUN.3.91.960214112838.11454B-100000@ernie>
References: <199602130949.AA28677@diva.gmd.de>
<Pine.SUN.3.91.960214112838.11454B-100000@ernie>
Sender: owner-ade-gcc@amigalib.com
Precedence: bulk
Kamil Iskra writes:
> > Unluckily, stack growth is currently at function entry, not within
> > ("call function <a> with at least 40KB (dynamically computed) of stack").
>
> What do you mean? I don't really follow you...
I mean that usually, you want something like the following:
in function A:
"oh, this is our input, it's so complex that we'll need
... compute stack size as a function of the input ...
ah, 40KB of stack before calling function B, so let's reserve
that much and call B so that it'll have enough."
and not:
at function entry of B:
"oh, well, I probably need a bigger stack, but how much, 2KB, 10KB
or 100KB?"
Unfortunately, the latter is what stackextend gives you. Currently,
you could be smart and set the stackextend variable to 100KB in A and
reset it to a normal 4KB in B, so that at entry of B, the stack will
be extended if it's not already 100KB in size. But this splitting
among two functions is cumbersome. You need to reset the variable in
B because you don't want every other function called by B to reserve
100KB again.
Bye,
Joerg Hoehle.
Joerg.Hoehle@gmd.de hoehle@zeus.gmd.de